combobox: Fix reentrancy in gtk_combo_box_popdown()
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 5 Jun 2014 19:09:46 +0000 (21:09 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 5 Jun 2014 19:16:05 +0000 (21:16 +0200)
commit246e6cd0b9693cc9d3c7655ee42b288dab0db0b2
tree94e4705f40449ed69de39065b141a9f59a2bff74
parent0e8e5501870a9b9a9b95b1796d749b6f0e974870
combobox: Fix reentrancy in gtk_combo_box_popdown()

If called when already popped down, warnings would be issued due
to priv->grab_pointer being unexpectedly NULL, this would happen
in regular operation when selecting items in appears-as-list mode.

So both add a NULL check for priv->grab_pointer, and bail out early
if the popup window is already hidden.
gtk/gtkcombobox.c